package com.waitingresult.number;

/**
 * @Author: WangShuai
 * @CreateTime: 2024-06-24  12:55
 * @Description:
 * @Version: 1.0
 */
public class PalindromeNumber {
    public static void main(String[] args) {
        // 回文数

    }

    public static boolean isPalindrome(int x) {
        StringBuffer reverse = new StringBuffer(String.valueOf(x)).reverse();
        return String.valueOf(x).equalsIgnoreCase(reverse.toString());
    }
}
